import random

class Account(object):
    def __init__(self):
        self.account = [
            {
                'email':    'gamehall666@gmail.com',
                'passwd':   'Game##Hall@666',
                'locale':   'it_IT',
                'timezone': 'Europe/Rome',
            },
            {
                'email':    'gamehall667@gmail.com',
                'passwd':   'Game##Hall@667',
                'locale':   'ja_JP',
                'timezone': 'Asia/Tokyo',
            },
            {
                'email':    'gamehall668@gmail.com',
                'passwd':   'Game##Hall@668',
                'locale':   'en_GB',
                'timezone': 'Europe/London',
            },
        ]

    def get_account(self, count):
        account_count = len(self.account)
        if account_count < count or not count :
            print('\naccount count error\n')
            os.exit()

        return random.sample(self.account, count)
